package fr.imag.ufrima.ima.project.manager;

import java.awt.event.MouseEvent;

import javax.swing.event.MouseInputAdapter;

import fr.imag.ufrima.ima.project.ui.main.ImageProject;

/**
 * 
 * @author lancelog
 *
 */
public class StatusBarManager extends MouseInputAdapter {
	
	private String s1,s2;
	private ImageProject frame;
	
	/**
	 * Constructor
	 * @param frame
	 */
	public StatusBarManager(ImageProject frame){
		super();
		this.frame = frame;
		s1="";
		s2="";
	}
	
	/**
	 * 
	 */
	public void mouseEntered(MouseEvent e){
		s1 = e.getX()+"";
		s2 = e.getY()+"";
		frame.setCoordonnees(s1,s2);
	}
	
	/**
	 * 
	 */
	public void mouseMoved(MouseEvent e){
		s1 = e.getX()+"";
		s2 = e.getY()+"";
		frame.setCoordonnees(s1,s2);
	}

}
